﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MassIntellect.WorkIt
{
    public class EchoInConsole : Pipe
    {
        public override void Pulse(PulseArgs args)
        {
            Console.WriteLine("{0}: {1}", args.Sender.Name, args.Values.FirstOrDefault());
        }

        public static void OnEcho(IPipe sender, string arg)
        {
            Console.WriteLine("{0:yyyy-MM-dd HH:mm:ss} {1}: {2}", DateTime.Now, sender.Name, arg);
        }
    }
}
